package com.example.im.core.vo;

import com.corundumstudio.socketio.SocketIOClient;

import java.io.Serializable;
import java.util.Date;

public class ClientInfo implements Serializable{
	private static final long serialVersionUID = 1537097105975277032L;
	private String clientType; // 客户端类型，客户：C，客服：CS
	private String userName; // 用户名
	private SocketIOClient socketIOClient; // socketio客户端
	private Date connectDate;  //连接时间
	/**
	 * socketio服务端Ip
	 */
	private String socketioServerIp;
	/**
	 * socketio客服端Ip
	 */
	private String socketioClientIp;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public SocketIOClient getSocketIOClient() {
		return socketIOClient;
	}

	public void setSocketIOClient(SocketIOClient socketIOClient) {
		this.socketIOClient = socketIOClient;
	}

	public String getClientType() {
		return clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}

	public Date getConnectDate() {
		return connectDate;
	}

	public void setConnectDate(Date connectDate) {
		this.connectDate = connectDate;
	}

	public String getSocketioServerIp() {
		return socketioServerIp;
	}

	public void setSocketioServerIp(String socketioServerIp) {
		this.socketioServerIp = socketioServerIp;
	}

	public String getSocketioClientIp() {
		return socketioClientIp;
	}

	public void setSocketioClientIp(String socketioClientIp) {
		this.socketioClientIp = socketioClientIp;
	}

	@Override
	public String toString() {
		return "ClientInfo{" +
				"clientType='" + clientType + '\'' +
				", userName='" + userName + '\'' +
				", socketIOClient=" + socketIOClient +
				", connectDate=" + connectDate +
				", socketioServerIp='" + socketioServerIp + '\'' +
				", socketioClientIp='" + socketioClientIp + '\'' +
				'}';
	}
}
